<?php
 
class Reader_TransactionController extends Zend_Controller_Action
{
    
    public function indexAction()
    {
        $user = Core_Session::get('user');
        
        $transactions = array();
        
        if ($user['CardID'] > 0)
        {
            $transactions = Model_Transaction::getByCardId(array(
                'CardID' => $user['CardID'],
                'Status' => 1
            ));        
        }            
        
        $this->view->assign('transactions', $transactions);
    }
}